<extend name="Public:base" />

<block name="content">
	<div class="page-header">
		<h1>
			{$breadcrumb2}
			<small>
				<i class="icon-double-angle-right"></i>
				还款计划
			</small>
		</h1>
	</div>
	
<!--<table class="table table-striped table-bordered table-hover search-form">
	<thead>
		<th><input name="order_num" type="text" placeholder="输入订单号" value="{:I('order_num')}" /></th>
		<th><input name="user_name" type="text" placeholder="输入会员名" value="{:I('user_name')}" /></th>		
		<th>    				
			<select name="status">
				<option value="">-选择状态-</option>
				<volist name="status" id="v" >
					<option <?php if(isset($get_status)&&($get_status==$v['order_status_id'])){echo ' selected="selected"';} ?> value="{$v.order_status_id}">{$v.name}</option>
				</volist>	
			</select>
		</th>
		<th>
			<a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Order/index')}">查询</a>
		</th>
	</thead>
</table>	
	-->
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
                        <th>期数</th>
                        <th>商品名称</th>
                        <th>借款人</th>
						<th>订单号</th> 
						<th>分期数</th>
						<th>待还款</th>
						<th>还需金额</th>
						<th>到期应还金额</th>
						<th>管理费</th>
					</tr>
				</thead>
				<tbody>
						<volist name="arr" id="v" empty="$empty">
						<tr>
							<td>第{$v.issue}期</td>
							<td>{$v.goods_name}</td>
							<td>{$v.member_name}</td>
							<td>{$v.order_num}</td>
							<td>{$v.staging_num}</td>
							<td>{$v.not_num}</td>
							<td>{$v.still_num}</td>
							<td>{$v.due_num}</td>
							<td>{$v.administer_num}</td>
						</tr>
						</volist>	
						
						<tr>
							<td colspan="20" class="page">{$page}</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
</block>
<block name="javascript">
<script>	
$(function(){
   $("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });	
});
</script>
</block>